//
//  WebViewController.m
//  DMGME
//
//  Created by ihope99 on 15/9/16.
//  Copyright (c) 2015年 GYP. All rights reserved.
//

#import "WebViewController.h"

@interface WebViewController ()

@end

@implementation WebViewController
{
    UIWebView *webView;
    NSString *reqeWeb;

}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self AddLeftImageBtn:[UIImage imageNamed:@"fanhui_03 2"]target:self action:@selector(GoBack)];

    if ([_strType isEqualToString:@"0"]) {
         reqeWeb = @"http://app.dongmango.cn/shop_shiyognxieyi.html";
        self.title = @"使用帮助";
    }else{
        reqeWeb = @"http://app.dongmango.cn/shop_fuwuxieyi.html";
        self.title = @"使用协议";

    }
    [self xieyiVC];
    // Do any additional setup after loading the view.
}
-(void)xieyiVC
{
    webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
    webView.delegate = self;
   
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:reqeWeb]];
    [webView loadRequest:request];
    [self.view addSubview:webView];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
